var comValidform = null;
var returnStatus = false;
var goldAccountPayBackUpdate= {
	curPage:1,
	pageSize:10,
	dataCache:null,
	startEvent : function() {
		goldAccountPayBackUpdate.showInfo();
		comValidform = $(".com-addForm").Validform({
			tiptype : 2,
			tipSweep : true,

			beforeSubmit : function(curform) {
				var params = jsUtils.serializeJson($('.com-addForm'));

				params.userId = userId;

				var url = 'mgr/safetyCtrl/updGoldAccountInfo';

				var cb = function(data) {
					alert(data.msg);
					returnStatus = true;
				};
				sendApiNoLoadSync(url, params, cb, 'POST');
				return false;
			}
		});
	},
	showInfo:function(){
		var payBackPhone01 = art.dialog.data('payBackPhone01');
		var payBackPhone02 = art.dialog.data('payBackPhone02');
		var payBackMail01 = art.dialog.data('payBackMail01');
		var payBackMail02 = art.dialog.data('payBackMail02');

		$("input[name='payBackPhone01']").val(payBackPhone01);
		$("input[name='payBackPhone02']").val(payBackPhone02);
		$("input[name='payBackMail01']").val(payBackMail01);
		$("input[name='payBackMail02']").val(payBackMail02);


	},

	init : function() {
		goldAccountPayBackUpdate.showInfo();
		goldAccountPayBackUpdate.startEvent();
	}
};

$(document).ready(function() {
	goldAccountPayBackUpdate.init();
});

function submitForm() {
	comValidform.submitForm();
	return returnStatus;
}
